import django_filters
from .models import *

class RoleFilter(django_filters.rest_framework.FilterSet):
    """过滤类"""

    class Meta:
        model = Role
        fields = ['key', 'name']